<%-- 
    Document   : creditinvcontent
    Created on : 05 4, 11, 5:16:57 PM
    Author     : Lee
--%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<s:div id="creditinvestigation">
    <s:form action="get-borrower-creditinv" theme="simple" cssStyle="position: relative; left: 550px; font-size: 11px !important; width: 450px;">
        <s:label cssStyle="font-size: 11px !important">Enter the Loan Verification No: </s:label>
        <s:textfield name="catvalue" value="credit" cssStyle="display: none" />
        <sj:autocompleter list="%{#laci.laciList}" indicator="true" cssStyle="width: 10px !important; background-color: white; z-index: 10000" cssClass="autocomplete" id="autocomplete" name="borrowerinfo" selectBox="true" />
        <sj:submit id="go" button="true" cssClass="ui-state-default" cssStyle="font-size:12px; visibility: hidden" value="Go" />
    </s:form>
    <s:form id="creditform" name="creditform" action="add-credit" theme="simple"  method="post" enctype="multipart/form-data">
        <s:div>
            <fieldset>
                <legend>
                    <h3>Document Information</h3>
                </legend>
                <table border="0" width="100%" id="tablecidoc">
                    <tr>
                        <td><s:label>Document</s:label></td><td><s:textfield id="doctypeci" cssStyle="font-size: 11px; width: 100px" name="doctypeci" label="Document Type" value="Credit Investigation" /></td>
                        <td><s:label>Document No.</s:label></td><td><s:textfield id="docnoci" cssStyle="font-size: 11px; width: 100px" name="docnoci" label="Document No." /></td>
                        <td><s:label>Document Date</s:label></td><td><div class="inputContainer"><sj:datepicker cssStyle="font-size: 11px; width: 100px" name="docdate" label="Document Date" cssClass="validate[required]" /></div></td>
                        <td><s:label>Document Image</s:label></td><td><s:file name="userImage" label="User Image" cssStyle="font-size: 10px; width: 140px"/></td>
                    </tr>
                    <tr>
                        <td><s:label>Document Ref</s:label></td><td><s:textfield readonly="true" id="docreftypeci" cssStyle="font-size: 11px; width: 100px" name="docreftypeci" label="Document Ref Type" value="Loan Application" /></td>
                        <td><s:label>Document Ref No.</s:label></td><td><s:textfield readonly="true" id="docrefnoci" cssStyle="font-size: 11px; width: 100px" name="docrefnoci" value="%{#request['loanver'].documents.documentno}" label="Document Ref No." /></td>
                        <td><s:label>Document Ref Date</s:label></td><td><s:textfield name="docdate" cssStyle="font-size: 11px; width: 100px" label="Document Date" readonly="true" value="%{#request['loanver'].documents.documentdate}" /></td>
                        <td style="display: none"><s:label>Loan Verification ID</s:label></td><td style="display: none"><s:textfield name="loanverid" cssStyle="font-size: 11px; width: 100px" label="loanverid" readonly="true" value="%{#request['loanver'].loanverificationid}" /></td>
                    </tr>
                    <tr style="display: none">
                        <td><s:label>Loan Application No.</s:label></td><td><s:textfield name="loanappid" label="Loan Application No." value="%{#request['loaninfo'].loanappid}"/></td>
                        <td style="display: none"><s:label>Employee Id</s:label></td><td><s:textfield name="employeeid" value="%{#session['employee'].idnumber}" readonly="true" label="Employee Id"/></td>
                    </tr>
                </table>
            </fieldset>
            <s:div id="navigation">
                <ul class="fragmentnav" style="margin-left: 35px;">
                    <li><s:a href="#divnickname">Nickname |</s:a></li>
                    <li><s:a href="#divcurrent"> Current Addr. |</s:a></li>
                    <li><s:a href="#divbusiness" > Place of Business |</s:a></li>
                    <li><s:a href="#divvehicles" > Vehicles |</s:a></li>
                    <li><s:a href="#divosi" > Other Source of Income |</s:a></li>
                    <li><s:a href="#diveduc" > Educational Attainment |</s:a></li>
                    <li><s:a href="#divprev" > Previous Addr. |</s:a></li>
                    <li><s:a href="#divparent" > Parents' Info |</s:a></li>
                    <li><s:a href="#divinlaw" > Parents-in-laws' Info</s:a></li>
                </ul>
                <ul class="fragmentnav" style="margin-left: 10px;">
                    <li><s:a href="#divprp" > Personal and Real Properties |</s:a></li>
                    <li><s:a href="#divonr" > Other Notes Receivables |</s:a></li>
                    <li><s:a href="#divrep" > Reputation |</s:a></li>
                    <li><s:a href="#divinf" > Informants |</s:a></li>
                    <li><s:a href="#divdocs" > Docs Presented |</s:a></li>
                    <li><s:a href="#divosa" > Observational and Situational Analysis |</s:a></li>
                    <li><s:a href="#diveval" > Eval. and Recommendations</s:a></li>
                </ul>
            </s:div>
        </s:div>
        <s:div id="creditoverflow" cssStyle="height: 325px; overflow: auto">
            <!--            business description-->
            <s:set name="bus" value="busnotempty"/>
            <s:if test="%{#bus=='yes'}">
                <fieldset id="divbusiness">
                    <legend>
                        <h3>Place of Business Description</h3>
                    </legend>
                    <table border="0">
                        <tr id="trid">
                            <td style="display: none"></td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedid" style="display: none"><s:textfield name="businessid" /></td>
                            </s:iterator>
                        </tr>
                        <tr id="trname">
                            <td>Business Name</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedname"><s:textfield name="businessname" title="Business Name" label="Business Name" /></td>
                            </s:iterator>
                        </tr>
                        <tr id="trtype">
                            <td>Business Type</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedtype"><s:textfield name="businesstype" title="Business Type" label="Business Type" /></td>
                            </s:iterator>
                        </tr>
                        <tr id="trfloorarea">
                            <td>Floor Area</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedfloorarea"><s:textfield id="pbdfloorarea" name="businessfloorarea" label="Floor Area (sq.meters)" cssStyle="width: 70px" key="businesses.floorarea" /> sq. meter</td>
                            </s:iterator>
                        </tr>
                        <tr id="trlandarea">
                            <td>Land Area</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedlandarea"><s:textfield id="pbdlandarea" name="businesslandarea" label="Land Area (sq.meters)" cssStyle="width: 70px" key="businesses.lotarea"/> sq. meter</td>
                            </s:iterator>
                        </tr>
                        <tr id="trbusstability">
                            <td>Business Stability</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedbusstability"><s:select
                                        cssStyle="width: 100%"
                                        key="businesses.stability"
                                        label="Stability"
                                        id="pbstability"
                                        name="businessstability"
                                        list="{'Owned','Mortgage','Renting','Living with Parents'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="Owned" /></td>
                                </s:iterator>
                        </tr>
                        <tr id="trbusmodel">
                            <td>Model</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedbusmodel">
                                    <s:select
                                        cssStyle="width: 100%"
                                        key="businesses.model"
                                        label="Model"
                                        id="pbmodel"
                                        name="businessmodel"
                                        list="{'Single Detach','Row House','Two Story','Duplex'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="Single Detach" /><%-- --%>
                                </td>
                            </s:iterator>
                        </tr>
                        <tr id="trbusmake">
                            <td>Make</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedbusmake">
                                    <s:select
                                        cssStyle="width: 100%"
                                        key="businesses.make"
                                        label="Make"
                                        id="pbmake"
                                        name="businessmake"
                                        list="{'Concrete','Wood','Renting','Steel','Nipa','Fenced','Garage'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="Concrete" /><%-- --%>
                                </td>
                            </s:iterator>
                        </tr>
                        <tr id="trbusland">
                            <td>Land</td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedbusland">
                                    <s:select
                                        cssStyle="width: 100%"
                                        key="businesses.land"
                                        label="Land"
                                        id="pbland"
                                        name="businessland"
                                        list="{'Owned','Mortgage','Renting','Government'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="Owned" /><%-- --%>
                                </td>
                            </s:iterator>
                        </tr>
                        <tr id="trdas">
                            <td>Daily Ave. Sales</td>
                            <s:iterator value="#request.business" >
                                <td id="tobecloneddas"><s:textfield name="dailyaveragesales" title="Daily Average Sales" label="DAS" /></td>
                            </s:iterator>
                        </tr>
                        <tr><td>If renting:</td></tr>
                        <tr id="trlname">
                            <td><s:label>Name of Landlord</s:label></td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedlname"><s:textfield name="businesslandlordname" label="Name of Landlord"/></td>
                            </s:iterator>
                        </tr>
                        <tr id="trrental">
                            <td><s:label>Monthly Rental</s:label></td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedrental"><s:textfield name="businessmonthlyrental" label="Monthly Rental"/></td>
                            </s:iterator>
                        </tr>
                        <tr id="trladd">
                            <td><s:label>Landlord Address</s:label></td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedladd"><s:textfield name="businesslandlordaddress" label="Landlord Address"/></td>
                            </s:iterator>
                        </tr>
                        <tr id="trphone">
                            <td><s:label>Phone No.</s:label></td>
                            <s:iterator value="#request.business" >
                                <td id="tobeclonedphone"><s:textfield name="businesslandlordphoneno" label="Phone No."/></td>
                            </s:iterator>
                        </tr>
                    </table>
                </fieldset>
                <p><input type="button" id="btnbusiness" value="Add More" style="display: none" /></p>
                </s:if>
                <s:else>
                <fieldset id="divbusiness">
                    <legend>
                        <h3>Place of Business Description</h3>
                    </legend>
                    <table border="0">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Place of Business Description</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr id="trid">
                            <td style="display: none"></td>
                            <td id="tobeclonedid" style="display: none"><s:textfield name="businessid" /></td>
                        </tr>
                        <tr id="trname">
                            <td>Business Name</td>
                            <td id="tobeclonedname"><s:textfield name="businessname" title="Business Name" label="Business Name" /></td>
                        </tr>
                        <tr id="trtype">
                            <td>Business Type</td>
                            <td id="tobeclonedtype"><s:textfield name="businesstype" title="Business Type" label="Business Type" /></td>
                        </tr>
                        <tr id="trfloorarea">
                            <td>Floor Area</td>
                            <td id="tobeclonedfloorarea"><s:textfield id="pbdfloorarea" name="businessfloorarea" label="Floor Area (sq.meters)" cssStyle="width: 70px" key="businesses.floorarea" /> sq. meter</td>
                        </tr>
                        <tr id="trlandarea">
                            <td>Land Area</td>
                            <td id="tobeclonedlandarea"><s:textfield id="pbdlandarea" name="businesslandarea" label="Land Area (sq.meters)" cssStyle="width: 70px" key="businesses.lotarea"/> sq. meter</td>
                        </tr>
                        <tr id="trbusstability">
                            <td>Business Stability</td>
                            <td id="tobeclonedbusstability"><s:select
                                    cssStyle="width: 100%"
                                    key="businesses.stability"
                                    label="Stability"
                                    id="pbstability"
                                    name="businessstability"
                                    list="{'Owned','Mortgage','Renting','Living with Parents'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="Owned" /></td>
                        </tr>
                        <tr id="trbusmodel">
                            <td>Model</td>
                            <td id="tobeclonedbusmodel">
                                <s:select
                                    cssStyle="width: 100%"
                                    key="businesses.model"
                                    label="Model"
                                    id="pbmodel"
                                    name="businessmodel"
                                    list="{'Single Detach','Row House','Two Story','Duplex'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="Single Detach" /><%-- --%>
                            </td>
                        </tr>
                        <tr id="trbusmake">
                            <td>Make</td>
                            <td id="tobeclonedbusmake">
                                <s:select
                                    cssStyle="width: 100%"
                                    key="businesses.make"
                                    label="Make"
                                    id="pbmake"
                                    name="businessmake"
                                    list="{'Concrete','Wood','Renting','Steel','Nipa','Fenced','Garage'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="Concrete" /><%-- --%>
                            </td>
                        </tr>
                        <tr id="trbusland">
                            <td>Land</td>
                            <td id="tobeclonedbusland">
                                <s:select
                                    cssStyle="width: 100%"
                                    key="businesses.land"
                                    label="Land"
                                    id="pbland"
                                    name="businessland"
                                    list="{'Owned','Mortgage','Renting','Government'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="Owned" /><%-- --%>
                            </td>
                        </tr>
                        <tr id="trdas">
                            <td>Daily Ave. Sales</td>
                            <td id="tobecloneddas"><s:textfield name="dailyaveragesales" title="Daily Average Sales" label="DAS" /></td>
                        </tr>
                        <tr><td>If renting:</td></tr>
                        <tr id="trlname">
                            <td><s:label>Name of Landlord</s:label></td>
                            <td id="tobeclonedlname"><s:textfield name="businesslandlordname" label="Name of Landlord"/></td>
                        </tr>
                        <tr id="trrental">
                            <td><s:label>Monthly Rental</s:label></td>
                            <td id="tobeclonedrental"><s:textfield name="businessmonthlyrental" label="Monthly Rental"/></td>
                        </tr>
                        <tr id="trladd">
                            <td><s:label>Landlord Address</s:label></td>
                            <td id="tobeclonedladd"><s:textfield name="businesslandlordaddress" label="Landlord Address"/></td>
                        </tr>
                        <tr id="trphone">
                            <td><s:label>Phone No.</s:label></td>
                            <td id="tobeclonedphone"><s:textfield name="businesslandlordphoneno" label="Phone No."/></td>
                        </tr>
                    </table>
                </fieldset>
                <p><input type="button" id="btnbusiness" value="Add More" style="display: none" /></p>
                </s:else>
            <!--            vehicle-->
            <s:set name="veh" value="vehiclenotempty" />
            <s:if test="%{#veh=='yes'}">
                <fieldset id="divvehicles">
                    <legend>
                        <h3>Vehicles Owned</h3>
                    </legend>
                    <table border="0" id="tblvehicle" width="100%">
                        <tr>
                            <td colspan="8" style="font-size: 14px; font-weight: bold;"><s:label>Vehicles Owned</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="8" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>No. Of Units</s:label></td>
                            <td><s:textfield id="noofunitsvehicle" name="noofunitsvehicle" label="No. Of Units" cssStyle="width: 30px;" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Type</s:label></td>
                            <td><s:label>Make</s:label></td>
                            <td><s:label>Model</s:label></td>
                        </tr>
                        <s:iterator value="#request.vehicles" status="stat">
                            <tr id="tobeclonedvehicle">
                                <td><s:label id="count" name="thecount" value="#stat.count" /></td>
                                <td><input id="typevehicle" name="vtype" value="<s:property value="type" />"  /></td>
                                <td><s:textfield id="makevehicle" name="make" label="Make" /></td>
                                <td><s:textfield id="modelvehicle" name="model" label="Model" /></td>
                            </tr>
                        </s:iterator>
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divvehicles">
                    <legend>
                        <h3>Vehicles Owned</h3>
                    </legend>
                    <table border="0" id="tblvehicle" width="100%">
                        <tr>
                            <td><s:label>No. Of Units</s:label></td>
                            <td><s:textfield id="noofunitsvehicle" name="noofunitsvehicle" label="No. Of Units" cssStyle="width: 30px;" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Type</s:label></td>
                            <td><s:label>Make</s:label></td>
                            <td><s:label>Model</s:label></td>
                        </tr>
                        <tr id="tobeclonedvehicle">
                            <td>1</td>
                            <td><s:textfield id="typevehicle" name="vtype" label="Type" /></td>
                            <td><s:textfield id="makevehicle" name="make" label="Make" /></td>
                            <td><s:textfield id="modelvehicle" name="model" label="Model" /></td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btnvehicle" value="Add More" /></p>
            <!--            other source of income-->
            <s:set name="osint" value="osinotempty" />
            <s:if test="%{#osint=='yes'}">
                <fieldset id="divosi">
                    <legend>
                        <h3>Other Sources of Income</h3>
                    </legend>
                    <table border="0" id="tblother" width="100%">
                        <tr>
                            <td></td>
                            <td></td>
                            <td><s:label>Employer/Business Name</s:label></td>
                            <td><s:label>Address</s:label></td>
                            <td><s:label>Position</s:label></td>
                            <td><s:label>Income</s:label></td>
                        </tr>
                        <s:iterator value="#request.osi" status="stat">
                            <tr id="tobeclonedother">
                                <td>1</td>
                                <td>
                                    <s:select
                                        key="othersourceofincome.type"
                                        label="Type"
                                        id="type"
                                        name="othersrctype"
                                        list="{'Applicant','Spouse','Family'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="Applicant" /></td>
                                <td><s:textfield id="empbusname" name="name" label="Employer/Business Name" key="othersourceofincome.employer" /></td>
                                <td><s:textfield id="otheraddress" name="address" label="Address" key="othersourceofincome.address" /></td>
                                <td><s:textfield id="otherposition" name="position" label="Position" key="othersourceofincome.position" /></td>
                                <td><s:textfield id="otherincome" name="income" label="Income" key="othersourceofincome.income" /></td>
                            </tr>
                        </s:iterator>
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divosi">
                    <legend>
                        <h3>Other Sources of Income</h3>
                    </legend>
                    <table border="0" id="tblother" width="100%">
                        <tr>
                            <td></td>
                            <td></td>
                            <td><s:label>Employer/Business Name</s:label></td>
                            <td><s:label>Address</s:label></td>
                            <td><s:label>Position</s:label></td>
                            <td><s:label>Income</s:label></td>
                        </tr>
                        <tr id="tobeclonedother">
                            <td>1</td>
                            <td>
                                <s:select
                                    key="othersourceofincome.type"
                                    label="Type"
                                    id="othersrctype"
                                    name="type"
                                    list="{'Applicant','Spouse','Family'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="Applicant" /></td>
                            <td><s:textfield id="empbusname" name="employer" label="Employer/Business Name" key="othersourceofincome.employer" /></td>
                            <td><s:textfield id="otheraddress" name="address" label="Address" key="othersourceofincome.address" /></td>
                            <td><s:textfield id="otherposition" name="position" label="Position" key="othersourceofincome.position" /></td>
                            <td><s:textfield id="otherincome" name="income" label="Income" key="othersourceofincome.income" /></td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btnother" value="Add More" /></p>
            <!--            educational attainment-->
            <fieldset id="diveduc">
                <legend>
                    <h3>Educational Attainment</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td><td>
                        <td>Degree</td>
                        <td>School</td>
                        <td>Year Graduated</td>
                    </tr>
                    <tr>
                        <td>Applicant<td>
                        <td<s:textfield id="appdegree" value="%{#request['borinfo'].degree}" name="degree" label="Degree" key="borrowerinfo.degree"  cssStyle="width: 250px" /></td>
                        <td><s:textfield id="appschool" value="%{#request['borinfo'].school}" name="school" label="School" key="borrowerinfo.school"  cssStyle="width: 250px" /></td>
                        <td><s:textfield id="appyeargrad" value="%{#request['borinfo'].yeargraduated}" name="yeargraduated" label="Year Graduated" key="borrowerinfo.yeargraduated" /></td>
                    </tr>
                    <tr>
                        <td>Spouse<td>
                        <td><s:textfield id="spousedegree" name="spousedegree" label="Degree" value="%{#request['creditinv'].spousedegree}" key="creditinvestigations.spousedegree"  cssStyle="width: 250px" /></td>
                        <td><s:textfield id="spouseschool" name="spouseschool" label="School" value="%{#request['creditinv'].spouseschool}" key="creditinvestigations.spouseschool"  cssStyle="width: 250px" /></td>
                        <td><s:textfield id="spouseyeargrad" name="spouseyeargraduated" label="Year Graduated" value="%{#request['creditinv'].spouseyeargraduated}" key="creditinvestigations.spouseyeargraduated" /></td>
                    </tr>
                </table>
            </fieldset>
            <!--            previous home address-->
            <fieldset>
                <legend id="divprev">
                    <h3>Previous Home Address</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td><s:label>Street Address</s:label></td>
                        <td><s:label>Barangay</s:label><%-- --%></td>
                        <td><s:label>Municipality/City</s:label><%-- --%></td>
                        <td><s:label>Province</s:label><%-- --%></td>
                        <td><s:label>Postal Code</s:label><%-- --%></td>

                    </tr>
                    <tr>
                        <td>
                            <s:textfield id="prevaddstreet" value="%{#request['creditinv'].previousstreetaddress}" name="previousstreetaddress" label="Street Address" key="creditinvestigations.previousstreetaddress" />
                        </td>
                        <td>
                            <s:textfield id="prevaddbrgy" value="%{#request['creditinv'].previousbarangay}" name="previousbarangay" label="Barangay" key="creditinvestigations.previousbarangay" />
                        </td>
                        <td>
                            <s:textfield id="prevaddcitymuni" value="%{#request['creditinv'].previouscityormunicipality}" name="previouscityormunicipality" label="City/Municipality" key="creditinvestigations.previouscityormunicipality" />
                        </td>
                        <td>
                            <s:textfield id="prevaddprovince" value="%{#request['creditinv'].previousprovince}" name="previousprovince" label="Province" key="creditinvestigations.previousprovince" />
                        </td>
                        <td>
                            <s:textfield id="prevaddpostalcode" value="%{#request['creditinv'].previouspostalcode}" name="previouspostalcode" label="Postal Code" key="creditinvestigations.previouspostalcode"/>
                        </td>

                    </tr>
                    <tr>
                        <td><s:label>Years of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                key="creditinvestigations.previouslengthofstayinyears"
                                label="years"
                                id="previouslengthofstayinyears"
                                name="previouslengthofstayinyears"
                                list="{'0','1','2','3','4','5','6','7','8','9','10'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].previouslengthofstayinyears}"
                                />

                        <td><s:label>Months of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                name="previouslengthofstayinmonths"
                                label="Months"
                                key="creditinvestigations.previouslengthofstayinmonths"
                                list="{'1','2','3','4','5','6','7','8','9','10','11','12'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].previouslengthofstayinmonths}"
                                />
                        </td>
                    </tr>


                </table>
            </fieldset>
            <!--            current address-->
            <fieldset id="divcurrent">
                <legend>
                    <h3>Current Address Description</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td><s:label>Floor Area (sq.meters)</s:label></td>
                        <td>
                            <div class="inputContainer"><s:textfield id="cadfloorarea" name="addressfloorarea" label="Floor Area (sq.meters)" value="%{#request['creditinv'].addressfloorarea}" key="creditinvestigations.addressfloorarea" cssClass="validate[required,custom[integer]] text-input" /></div>
                        </td>
                        <td><s:label>Land Area (sq.meters)</s:label></td>
                        <td>
                            <div class="inputContainer"><s:textfield id="cadlandarea" name="addresslotarea" label="Land Area (sq.meters)" value="%{#request['creditinv'].addresslotarea}" key="creditinvestigations.addresslotarea" cssClass="validate[required,custom[integer]] text-input" /></div>
                        </td>
                        <td><s:label>Business Stability</s:label></td>
                        <td>
                            <div class="inputContainer">
                                <s:select
                                    cssClass="validate[required]"
                                    key="creditinvestigations.addressstability"
                                    label="Stability"
                                    id="castability"
                                    name="addressstability"
                                    list="{'Owned','Mortgage','Renting','Living with Parents'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="%{#request['creditinv'].addressstability}" />
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><s:label>Model</s:label></td>
                        <td>
                            <s:select
                                key="creditinvestigations.addressmodel"
                                label="Model"
                                id="castability"
                                name="addressmodel"
                                list="{'Single Detach','Row House','Two Story','Duplex'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].addressmodel}" /><%-- --%>
                        </td>
                        <td><s:label>Make</s:label></td>
                        <td>
                            <div class="inputContainer">
                                <s:select
                                    cssClass="validate[required]"
                                    key="creditinvestigations.addressmake"
                                    label="Make"
                                    id="camake"
                                    name="addressmake"
                                    list="{'Concrete','Wood','Renting','Steel','Nipa','Fenced','Garage'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="%{#request['creditinv'].addressmake}" />
                            </div>
                        </td>
                        <td><s:label>Land</s:label></td>
                        <td>
                            <div class="inputContainer">
                                <s:select
                                    cssClass="validate[required]"
                                    key="creditinvestigations.addressland"
                                    label="Land"
                                    id="caland"
                                    name="addressland"
                                    list="{'Owned','Mortgage','Renting','Government'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="%{#request['creditinv'].addressland}" />
                            </div>
                        </td>
                    </tr>
                </table>
                <table border="0" width="100%">
                    <tr>
                        <td><s:label>If renting:</s:label></td>
                    </tr>
                    <tr>
                        <td><s:label>Name of Landlord</s:label></td>
                        <td><s:textfield name="addresslandlordname" label="Name of Landlord" value="%{#request['creditinv'].addresslandlordname}" /></td>
                        <td><s:label>Monthly Rental</s:label></td>
                        <td><s:textfield name="addressmonthlyrental" label="Monthly Rental" value="%{#request['creditinv'].addressmonthlyrental}" /></td>
                        <td><s:label>Landlord Address</s:label></td>
                        <td><s:textfield name="addresslandlordaddress" label="Landlord Address" value="%{#request['creditinv'].addresslandlordaddress}" /></td>
                        <td><s:label>Phone No.</s:label></td>
                        <td><s:textfield name="addresslandlordphoneno" label="Phone No." value="%{#request['creditinv'].addresslandlordphoneno}" /></td>
                    </tr>
                </table>
            </fieldset>        
            <!--            personal and real properties owned-->
            <s:set name="parpnotempty" value="parpnotempty"/>
            <s:if test="%{#parpnotempty=='yes'}">
                <fieldset id="divprp">
                    <legend>
                        <h3>Personal and Real Properties Owned</h3>
                    </legend>
                    <table border="0" id="tblpersonal" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Personal and Real Properties Owned</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Description</td>
                            <td>Nature</td>
                            <td>Location</td>
                            <td>Value</td>
                        </tr>
                        <s:iterator value="#request.parp" >
                            <tr id="tobeclonedpersonal">
                                <td>1</td>
                                <td><s:textfield id="prpdescription" name="description" label="Description" key="personalandrealproperties.description" /></td>
                                <td><s:textfield id="prpnature" name="nature" label="Nature" key="personalandrealproperties.nature"/></td>
                                <td><s:textfield id="prplocation" name="location" label="Location" key="personalandrealproperties.location"/></td>
                                <td><s:textfield id="value6" name="value" label="Value" key="personalandrealproperties.value"/></td>
                            </tr>
                        </s:iterator>
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divprp">
                    <legend>
                        <h3>Personal and Real Properties Owned</h3>
                    </legend>
                    <table border="0" id="tblpersonal" width="100%">
                        <tr>
                            <td></td>
                            <td>Description</td>
                            <td>Nature</td>
                            <td>Location</td>
                            <td>Value</td>
                        </tr>
                        <tr id="tobeclonedpersonal">
                            <td>1</td>
                            <td><s:textfield id="prpdescription" name="description" label="Description" key="personalandrealproperties.description" /></td>
                            <td><s:textfield id="prpnature" name="nature" label="Nature" key="personalandrealproperties.nature"/></td>
                            <td><s:textfield id="prplocation" name="location" label="Location" key="personalandrealproperties.location"/></td>
                            <td><s:textfield id="value6" name="value" label="Value" key="personalandrealproperties.value"/></td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btnpersonal" value="Add More" /></p>        
            <!--            savings, time deposit and other notes receivables-->
            <s:set name="nrnotempty" value="nrnotempty"/>
            <s:if test="%{#nrnotempty=='yes'}">
                <fieldset id="divonr">
                    <legend>
                        <h3>Savings, Time Deposit and Other Notes Receivables</h3>
                    </legend>
                    <table border="0" id="tblsavings" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Savings, Time Deposit and Other Notes Receivables</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Bank/Institution</td>
                            <td>Type</td>
                            <td>Account Number</td>
                            <td>Amount</td>
                        </tr>
                        <s:iterator value="#request.soi" >
                            <tr id="tobeclonedsavings">
                                <td>1</td>
                                <td><s:textfield id="stobankinstitution" name="bank" label="Bank/Institution" key="notesreceivable.bank" /></td>
                                <td><input id="stotype" name="stotype" value="<s:property value="type"/>" label="Type" key="notesreceivable.type" /></td>
                                <td><s:textfield id="stoaccountno" name="accountno" label="Account Number" key="notesreceivable.accountno" /></td>
                                <td> <s:textfield id="stoamount" name="amount" label="Amount" key="notesreceivable.amount" /></td>
                            </tr>
                        </s:iterator>
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divonr">
                    <legend>
                        <h3>Savings, Time Deposit and Other Notes Receivables</h3>
                    </legend>
                    <table border="0" id="tblsavings" width="100%">
                        <tr>
                            <td></td>
                            <td>Bank/Institution</td>
                            <td>Type</td>
                            <td>Account Number</td>
                            <td>Amount</td>
                        </tr>
                        <tr id="tobeclonedsavings">
                            <td>1</td>
                            <td><s:textfield id="stobankinstitution" name="bank" label="Bank/Institution" key="notesreceivable.bank" /></td>
                            <td><s:textfield id="stotype" name="stotype" label="Type" key="notesreceivable.type" /></td>
                            <td><s:textfield id="stoaccountno" name="accountno" label="Account Number" key="notesreceivable.accountno" /></td>
                            <td> <s:textfield id="stoamount" name="amount" label="Amount" key="notesreceivable.amount" /></td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btnsavings" value="Add More" /></p>
            <!--            informants           -->
            <s:set name="infnotempty" value="infnotempty"/>
            <s:if test="%{#infnotempty=='yes'}">
                <fieldset id="divinf">
                    <legend>
                        <h3>Informants</h3>
                    </legend>
                    <table border="0" id="tblinformants" width="100%">
                        <tr>
                            <td></td>
                            <td>First Name</td>
                            <td>Middle Name</td>
                            <td>Last Name</td>
                            <td>Relationship to Borrower</td>
                            <td>Address</td>
                            <td>Length of Relationship</td>
                        </tr>
                        <s:iterator value="#request.inf" >
                            <tr id="tobeclonedinformants">
                                <td>1</td>
                                <td><input id="informant1firstname" value="<s:property value="firstname"/>" name="ifirstname" label="First Name" key="informants.firstname" /></td>
                                <td><input id="informant1mi" value="<s:property value="middlename"/>" name="imiddlename" label="M.I." key="informants.middlename" /></td>
                                <td><input id="informant1lastname" value="<s:property value="lastname"/>" name="ilastname" label="Last Name" key="informants.lastname" /></td>
                                <td><input id="informant1rel" value="<s:property value="address"/>" name="irelationshiptoborrower" label="Relationship to Borrower"  key="informants.relationshiptoborrower" /></td>
                                <td><input id="informant1address"  value="<s:property value="relationship to borrower"/>" name="iaddress" label="Address" key="informants.address" /></td>
                                <td><input id="lengthofrelationshipinyears3"  value="<s:property value="lengthofrelationshipinyears"/>" name="ilengthofrelationshipinyears" label="Length of Relationship" key="informants.lengthofrelationshipinyears" /></td>
                            </tr>
                        </s:iterator> 
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divinf">
                    <legend>
                        <h3>Informants</h3>
                    </legend>
                    <table border="0" id="tblinformants" width="100%">
                        <tr>
                            <td></td>
                            <td>First Name</td>
                            <td>Middle Name</td>
                            <td>Last Name</td>
                            <td>Relationship to Borrower</td>
                            <td>Address</td>
                            <td>Length of Relationship</td>
                        </tr>
                        <tr id="tobeclonedinformants">
                            <td>1</td>
                            <td><s:textfield id="informant1firstname" name="ifirstname" label="First Name" key="informants.firstname" /></td>
                            <td><s:textfield id="informant1mi" name="imiddlename" label="M.I." key="informants.middlename" /></td>
                            <td><s:textfield id="informant1lastname" name="ilastname" label="Last Name" key="informants.lastname" /></td>
                            <td><s:textfield id="informant1rel" name="irelationshiptoborrower" label="Relationship to Borrower"  key="informants.relationshiptoborrower" /></td>
                            <td><s:textfield id="informant1address" name="iaddress" label="Address" key="informants.address" /></td>
                            <td><s:textfield id="lengthofrelationshipinyears3" name="ilengthofrelationshipinyears" label="Length of Relationship" key="informants.lengthofrelationshipinyears" /></td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btninformants" value="Add More" /></p>
            <!--            evaluation and recommendations-->
            <fieldset id="diveval">
                <legend>
                    <h3>Evaluation and Recommendations</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td>
                            <s:label>Credit Consultant</s:label><br/>
                            <s:textarea cols="45" rows="10" id="ercreditcon" name="creditconsultantrecommendation" value="%{#request['creditinv'].creditconsultantrecommendation}" label="Credit Consultant"/>
                        </td>

                        <td>
                            <s:label>Branch Manager</s:label><br/>
                            <s:textarea cols="45" rows="10" id="erbm" name="branchmanagerrecommendation" label="Branch Manager" value="%{#request['creditinv'].branchmanagerrecommendation}" />
                        </td>

                        <td>
                            <s:label>Area Manager</s:label><br/>
                            <s:textarea cols="45" rows="10" id="eram" name="areamanagerrecommendation" label="Area Manager" value="%{#request['creditinv'].areamanagerrecommendation}" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            
                        
                        
                        
            
            <!--            borrower's nickname-->
            <fieldset id="divnickname">
                <legend>
                    <h3>Borrower's Nickname</h3>
                </legend>
                <table width="100%">
                    <tr>
                        <td><s:label>Borrower's Full Name: </s:label></td>
                        <td><div class="inputContainer"><s:textfield id="nickname" name="nickname" label="Nickname" value="%{#request['loaninfo'].borrowername}" key="creditinvestigations.nickname" cssClass="validate[required] text-input" /></div></td>
                        <td><s:label>Nickname: </s:label></td>
                        <td><div class="inputContainer"><s:textfield id="nickname" name="nickname" label="Nickname" value="%{#request['creditinv'].nickname}" key="creditinvestigations.nickname" cssClass="validate[required] text-input" /></div></td>
                    </tr>
                </table>
            </fieldset>
            <!--            parent's address-->
            <fieldset id="divparent">
                <legend>
                    <h3>Parents Address</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td><s:label>Street Address</s:label></td>
                        <td><s:label>Barangay</s:label><%-- --%></td>
                        <td><s:label>Municipality/City</s:label><%-- --%></td>
                        <td><s:label>Province</s:label><%-- --%></td>
                        <td><s:label>Postal Code</s:label><%-- --%></td>
                    </tr>
                    <tr>
                        <td>
                            <s:textfield id="parentaddstreet" value="%{#request['creditinv'].parentsstreetaddress}" name="parentsstreetaddress" label="Street Address" key="creditinvestigations.parentsstreetaddress" />
                        </td>
                        <td>
                            <s:textfield id="parentaddbrgy" value="%{#request['creditinv'].parentsbarangay}" name="parentsbarangay" label="Barangay" key="creditinvestigations.parentsbarangay" />
                        </td>
                        <td>
                            <s:textfield id="parentaddcitymuni" value="%{#request['creditinv'].parentscityormunicipality}" name="parentscityormunicipality" label="City/Municipality" key="creditinvestigations.parentscityormunicipality" />
                        </td>
                        <td>
                            <s:textfield id="parentaddprovince" value="%{#request['creditinv'].parentsprovince}" name="parentsprovince" label="Province" key="creditinvestigations.parentsprovince" />
                        </td>
                        <td>
                            <s:textfield id="parentpostalcode" value="%{#request['creditinv'].parentspostalcode}" name="parentspostalcode" label="Postal Code" key="creditinvestigations.parentspostalcode"/>
                        </td>

                    </tr>
                    <tr>
                        <td><s:label>Years of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                name="parentslengthofstayinyear"
                                label="Years"
                                key="creditinvestigations.parentslengthofstayinyear"
                                list="{'0','1','2','3','4','5','6','7','8','9','10'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].parentslengthofstayinyear}"
                                />
                        </td>
                        <td><s:label>Months of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                name="parentslengthofstayinmonths"
                                label="Months"
                                key="creditinvestigations.parentslengthofstayinmonths"
                                list="{'1','2','3','4','5','6','7','8','9','10','11','12'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].parentslengthofstayinmonths}"
                                />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <!--            parent's information-->
            <fieldset>
                <legend>
                    <h3>Parents' Information</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td></td>
                        <td><s:label>First Name</s:label></td>
                        <td><s:label>Middle Name</s:label></td>
                        <td><s:label>Last Name</s:label></td>
                        <td><s:label>Employer</s:label></td>
                        <td><s:label>Position</s:label></td>
                        <td><s:label>Age</s:label></td>
                    </tr>
                    <tr>
                        <td><s:label>Father</s:label></td>
                        <td><s:textfield id="fatherlastname"  value="%{#request['borinfo'].fatherfirstname}"  name="fatherfirstname" label="First Name" key="borrowerinfo.fatherfirstname" /><%-- --%></td>
                        <td><s:textfield id="fathermi"  value="%{#request['borinfo'].fathermiddlename}"  name="fathermiddlename" label="Middle Name" key="borrowerinfo.fathermiddlename" /><%-- --%></td>
                        <td><s:textfield id="fatherfirstname"  value="%{#request['borinfo'].fatherlastname}" name="fatherlastname" label="Last Name" key="borrowerinfo.fatherlastname" /><%-- --%></td>
                        <td><s:textfield id="fatheremp"  value="%{#request['borinfo'].fatheremployer}" name="fatheremployer" label="Employer" key="borrowerinfo.fatheremployer" /><%-- --%></td>
                        <td><s:textfield id="fatherposition"  value="%{#request['borinfo'].fatherposition}" name="fatherposition" label="Position" key="borrowerinfo.fatherposition" /><%-- --%></td>
                        <td><s:textfield id="fatherage"  value="%{#request['borinfo'].fatherage}" name="fatherage" label="Age" key="borrowerinfo.fatherage" cssStyle="width: 30px;" /></td>
                    </tr>
                    <tr>
                        <td><s:label>Mother</s:label></td>
                        <td><s:textfield id="motherfirstname" value="%{#request['borinfo'].motherfirstname}"  name="motherfirstname" label="First Name" key="borrowerinfo.motherfirstname" /><%-- --%></td>
                        <td><s:textfield id="mothermi" value="%{#request['borinfo'].mothermiddlename}"  name="mothermiddlename" label="Middle Name" key="borrowerinfo.mothermiddlename" /><%-- --%></td>
                        <td><s:textfield id="motherlastname" value="%{#request['borinfo'].motherlastname}"  name="motherlastname" label="Last Name" key="borrowerinfo.motherlastname" /><%-- --%></td>
                        <td><s:textfield id="motheremp" value="%{#request['borinfo'].motheremployer}"  name="motheremployer" label="Employer" key="borrowerinfo.motheremployer" /><%-- --%></td>
                        <td><s:textfield id="motherposition" value="%{#request['borinfo'].motherposition}"  name="motherposition" label="Position" key="borrowerinfo.motherposition" /><%-- --%></td>
                        <td><s:textfield id="motherage" value="%{#request['borinfo'].motherage}"  name="motherage" label="Age" key="borrowerinfo.motherage" cssStyle="width: 30px;" /></td>
                    </tr>
                </table>
            </fieldset>
            <!--            parent in law's address-->
            <fieldset id="divinlaw">
                <legend>
                    <h3>Parents-in-Law's Address</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td><s:label>Street Address</s:label></td>
                        <td><s:label>Barangay</s:label><%-- --%></td>
                        <td><s:label>Municipality/City</s:label><%-- --%></td>
                        <td><s:label>Province</s:label><%-- --%></td>
                        <td><s:label>Postal Code</s:label><%-- --%></td>
                    </tr>
                    <tr>
                        <td>
                            <s:textfield id="parentinlawaddno" value="%{#request['creditinv'].parentsinlawstreetaddress}" name="parentsinlawstreetaddress" label="Street Address" key="creditinvestigations.parentsinlawstreetaddress" />
                        </td>
                        <td>
                            <s:textfield id="parentinlawaddbrgy" value="%{#request['creditinv'].parentsinlawbarangay}" name="parentsinlawbarangay" label="Barangay" key="creditinvestigations.parentsinlawbarangay" />
                        </td>
                        <td>
                            <s:textfield id="parentinlawaddcitymuni" value="%{#request['creditinv'].parentsinlawcityormunicipality}" name="parentsinlawcityormunicipality" label="City/Municipality" key="creditinvestigations.parentsinlawcityormunicipality" />
                        </td>
                        <td>
                            <s:textfield id="parentinlawaddprovince" value="%{#request['creditinv'].parentsinlawprovince}" name="parentsinlawprovince" label="Province" key="creditinvestigations.parentsinlawprovince" />
                        </td>
                        <td>
                            <s:textfield id="parentinlawaddprovince" value="%{#request['creditinv'].parentsinlawpostalcode}" name="parentsinlawpostalcode" label="Postal Code" key="creditinvestigations.parentsinlawpostalcode" />
                        </td>

                    </tr>
                    <tr>
                        <td><s:label>Years of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                name="parentsinlawlengthofstayinyears"
                                label="Years"
                                list="{'0','1','2','3','4','5','6','7','8','9','10'}"
                                headerKey="-1"
                                headerValue="Please Select "
                                emptyOption="false"
                                value="%{#request['creditinv'].parentsinlawlengthofstayinyears}"
                                />
                        </td>
                        <td><s:label>Months of Stay</s:label><%-- --%>
                            <s:select
                                cssStyle="width: 40px;"
                                name="parentsinlawlengthofstayinmonths"
                                label="Months"
                                list="{'1','2','3','4','5','6','7','8','9','10','11','12'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].parentsinlawlengthofstayinmonths}"
                                />
                        </td>
                    </tr>

                </table>
            </fieldset>
            <!--            parent in law'f information-->
            <fieldset>
                <legend>
                    <h3>Parents-in-Law's Information</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td></td>
                        <td><s:label>First Name</s:label></td>
                        <td><s:label>Middle Name</s:label></td>
                        <td><s:label>Last Name</s:label></td>
                        <td><s:label>Employer</s:label></td>
                        <td><s:label>Position</s:label></td>
                        <td><s:label>Age</s:label></td>
                    </tr>
                    <tr>
                        <td><s:label>Father</s:label></td>
                        <td><s:textfield id="fatherinlawfirstname" value="%{#request['creditinv'].fatherinlawfirstname}" name="fatherinlawfirstname" label="First Name" key="creditinvestigations.fatherinlawfirstname" /></td>
                        <td><s:textfield id="fatherinlawmi" value="%{#request['creditinv'].fatherinlawmiddlename}" name="fatherinlawmiddlename" label="M.I." key="creditinvestigations.fatherinlawmiddlename" /></td>
                        <td><s:textfield id="fatherinlawlastname" value="%{#request['creditinv'].fatherinlawlastname}" name="fatherinlawlastname" label="Last Name" key="creditinvestigations.fatherinlawlastname" /></td>
                        <td><s:textfield id="fatherinlawemp" value="%{#request['creditinv'].fatherinlawemployer}" name="fatherinlawemployer" label="Employer" key="creditinvestigations.fatherinlawemployer" /></td>
                        <td><s:textfield id="fatherinlawposition" value="%{#request['creditinv'].fatherinlawposition}" name="fatherinlawposition" label="Position" key="creditinvestigations.fatherinlawposition" /></td>
                        <td><s:textfield id="fatherinlawage" value="%{#request['creditinv'].fatherinlawage}" name="fatherinlawage" label="Age" key="creditinvestigations.fatherinlawage" cssStyle="width: 30px;" /></td>
                    </tr>
                    <tr>
                        <td><s:label>Mother</s:label></td>
                        <td><s:textfield id="motherfirstname" value="%{#request['creditinv'].motherinlawfirstname}" name="motherinlawfirstname" label="First Name" key="creditinvestigations.motherinlawfirstname" /></td>
                        <td><s:textfield id="mothermi" value="%{#request['creditinv'].motherinlawmiddlename}" name="motherinlawmiddlename" label="M.I." key="creditinvestigations.motherinlawmiddlename" /></td>
                        <td><s:textfield id="motherlastname" value="%{#request['creditinv'].motherinlawlastname}" name="motherinlawlastname" label="Last Name" key="creditinvestigations.motherinlawlastname" /></td>
                        <td><s:textfield id="motheremp" value="%{#request['creditinv'].motherinlawemployer}" name="motherinlawemployer" label="Employer" key="creditinvestigations.motherinlawemployer" /></td>
                        <td><s:textfield id="motherposition" value="%{#request['creditinv'].motherinlawposition}" name="motherinlawposition" label="Position" key="creditinvestigations.motherinlawposition" /></td>
                        <td><s:textfield id="motherage" value="%{#request['creditinv'].motherinlawage}" name="motherinlawage" label="Age" key="creditinvestigations.motherinlawage" cssStyle="width: 30px;" /></td>
                    </tr>
                </table>
            </fieldset>
            
            
            <!--            reputation-->
            <fieldset id="divrep">
                <legend>
                    <h3>Reputation</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Reputation</s:label></td>
                        <td>
                            <div class="inputContainer">
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Good moral character" name="reputation" value="false" fieldValue="Good moral character" key="reputation.type" /><s:label>Good moral character</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Notorious character" name="reputation" value="false" fieldValue="Notorious character" key="reputation.type"/><s:label>Notorious character</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Heavily indebted" name="reputation" value="false" fieldValue="Heavily indebted" key="reputation.type"/><s:label>Heavily indebted</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Frequented by collectors" name="reputation" value="false" fieldValue="Frequented by collectors" key="reputation.type"/><s:label>Frequented by collectors</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Extravagant" name="reputation" value="false" fieldValue="Extravagant" key="reputation.type"/><s:label>Extravagant</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Gambler" name="reputation" value="false" fieldValue="Gambler" key="reputation.type"/><s:label>Gambler</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Adulterous" name="reputation" value="false" fieldValue="Adulterous" key="reputation.type"/><s:label>Adulterous</s:label><br />
                                <s:checkbox cssClass="validate[minCheckbox[2]] checkbox" label="Separated" name="reputation" value="false" fieldValue="Separated" key="reputation.type"/><s:label>Separated</s:label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Residence Confirmation</s:label></td>
                        <td>
                            <s:label>Residence Confirmation</s:label>
                            <div class="inputContainer">
                                <s:select
                                    cssClass="validate[required]"
                                    label="Residence Confirmation"
                                    id="rescon"
                                    name="presentaddressstatus"
                                    list="{'Owned','Mortgage','Living w/ Parents','Free'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="%{#request['creditinv'].presentaddressstatus}" />
                            </div>
                            <br />
                            <s:label>Length of Stay</s:label>
                            <s:select
                                cssClass="validate[required]"
                                cssStyle="width: 40px;"
                                label="Years"
                                name="presentaddresslengthofstayinyears"
                                list="{'0','1','2','3','4','5','6','7','8','9','10'}"
                                headerKey="-1"
                                headerValue="Please Select"
                                emptyOption="false"
                                value="%{#request['creditinv'].presentaddresslengthofstayinyears}"
                                />
                            <s:label>Months of Stay</s:label>
                            <div class="inputContainer">
                                <s:select
                                    cssClass="validate[required]"
                                    cssStyle="width: 40px;"
                                    name="presentaddresslengthofstayinmonths"
                                    label="Months"
                                    list="{'1','2','3','4','5','6','7','8','9','10','11','12'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="%{#request['creditinv'].presentaddresslengthofstayinmonths}"
                                    />
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Source of Income</s:label></td>
                        <td>
                            <s:checkbox label="Employment" name="sourceofincome" value="false" fieldValue="Employment" key="sourceofincome.type"/><s:label>Employment</s:label><br />
                            <s:checkbox label="Business" name="sourceofincome" value="false" fieldValue="Business" key="sourceofincome.type"/><s:label>Business</s:label><br />
                            <s:checkbox label="Overseas Remittance" name="sourceofincome" value="false" fieldValue="Overseas Remittance" key="sourceofincome.type"/><s:label>Overseas Remittance</s:label><br />
                            <s:checkbox label="Pension" name="sourceofincome" value="false" fieldValue="Pension" key="sourceofincome.type"/><s:label>Pension</s:label>
                        </td>
                    </tr>
                </table>
            </fieldset>
            
            <!--            documents presented-->
            <s:set name="docnotempty" value="docnotempty"/>
            <s:if test="%{#docnotempty=='yes'}">
                <fieldset id="divdocs">
                    <legend>
                        <h3>Documents Presented</h3>
                    </legend>
                    <table border="0" id="tbldocs" width="100%">
                        <!--                    <tr>-->
                        <!--                        <td></td>-->
                        <!--                    </tr>-->
                        <tr>
                            <td></td>
                            <td><s:label>Documents Type</s:label></td>
                            <td><s:label>Documents No.</s:label></td>
                            <td><s:label>Type of Copy</s:label></td>
                        </tr>
                        <s:iterator value="#request.doc" >
                            <tr id="tobecloneddocs">
                                <td>1</td>
                                <td><s:textfield id="documenttype" name="documenttype" label="Document Type" key="documentspassed.documenttype" /></td>
                                <td><s:textfield id="documentno" name="documentno" label="Document No." key="documentpassed.documentno" /></td>
                                <td>
                                    <s:select
                                        id="documenttypecopy"
                                        name="copytype"
                                        key="documentspassed.copytype"
                                        label="Months"
                                        list="{'Original','Photocopy'}"
                                        headerKey="-1"
                                        headerValue="Please Select"
                                        emptyOption="false"
                                        value="1" />
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                </fieldset>
            </s:if>
            <s:else>
                <fieldset id="divdocs">
                    <legend>
                        <h3>Documents Presented</h3>
                    </legend>
                    <table border="0" id="tbldocs" width="100%">
                        <tr>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Documents Type</s:label></td>
                            <td><s:label>Documents No.</s:label></td>
                            <td><s:label>Type of Copy</s:label></td>
                        </tr>
                        <tr id="tobecloneddocs">
                            <td>1</td>
                            <td><s:textfield id="documenttype" name="documenttype" label="Document Type" key="documentspassed.documenttype" /></td>
                            <td><s:textfield id="documentno" name="documentno" label="Document No." key="documentpassed.documentno" /></td>
                            <td>
                                <s:select
                                    id="documenttypecopy"
                                    name="copytype"
                                    key="documentspassed.copytype"
                                    label="Months"
                                    list="{'Original','Photocopy'}"
                                    headerKey="-1"
                                    headerValue="Please Select"
                                    emptyOption="false"
                                    value="1" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </s:else>
            <p><input type="button" id="btndocs" value="Add More" /></p>
            <!--            observations and situational analysis-->
            <fieldset id="divosa">
                <legend>
                    <h3>Observations and Situational Analysis</h3>
                </legend>
                <table border="0" width="100%">
                    <tr>
                        <td>
                            <s:label>Stocks Worth Description</s:label><br/>
                            <s:textarea cols="45" rows="10" id="stocksworth" name="stocksworth" value="%{#request['creditinv'].stocksworthdescription}" label="Stocks Worth"/><br/>
                            <s:label>Stocks Worth Amount</s:label><br/>
                            <s:textfield name="stocksworthamount" id ="stocksworthamount" value="%{#request['creditinv'].stocksworthamount}" label="Amount" />
                        </td>
                        <td>
                            <s:label>Remarks</s:label><br/>
                            <s:textarea cols="45" rows="10" id="osaremarks" name="remarks" label="Remarks" value="%{#request['creditinv'].remarks}" /><br/>
                            <s:textfield name="asdfasd" cssStyle="visibility: hidden;" />
                        </td>
                        <td>
                            <s:label>Types of Collaterals</s:label><br/>
                            <s:checkbox label="Appliance" name="collateral" value="false" fieldValue="Appliance"/><s:label>Appliance</s:label><br />
                            <s:checkbox label="Motor Vehicle" name="collateral" value="false" fieldValue="Motor Vehicle"/><s:label>Motor Vehicle</s:label><br />
                            <s:checkbox label="Passenger Tricycle" name="collateral" value="false" fieldValue="Passenger Tricycle"/><s:label>Passenger Tricycle</s:label><br />
                            <s:checkbox label="House and Lot" name="collateral" value="false" fieldValue="House and Lot"/><s:label>House and Lot</s:label><br />
                            <s:checkbox label="Land Title" name="collateral" value="false" fieldValue="Land Title"/><s:label>Land Title</s:label><br />
                            <s:label>Others:</s:label><s:textfield id="othertypecollateral" name="othertypecollateral" label="Others:" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            
        </s:div>
        <s:div id="buttons" cssStyle="float:right">
            <sj:submit cssClass="ui-state-default" value="Save Credit Investigation" button="true" cssStyle="float:left;margin-top:2px;font-size:12px !important;font-family: Tahoma, Geneva, sans-serif !important;" />
            <%--<sj:a button="true" 
                  cssClass="default" 
                  cssStyle="float:left;
                  height:22px !important;
                  margin-top:2px;
                  font-size:12px !important;
                  line-height: 0;
                  font-family: Tahoma, Geneva, sans-serif;">
                Cancel
            </sj:a>--%>
            <%--<sj:a 
                button="true"
                href="#" 
                onclick="evalCi()"
                cssClass="default" 
                cssStyle="float:left;
                height:22px !important;
                margin-top:2px;
                font-size:12px !important;
                line-height: 0;
                font-family: Tahoma, Geneva, sans-serif;">
                Save
            </sj:a>--%>
        </s:div>
    </s:form>
</s:div>
